{#**
*
* 功能描述（分页栏模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
<script>
function changePage(obj, idx)
{
	var url = window.location.href
	url = url.replace(/&page=[0-9]*/g,'');
	url = url.replace(/#*$/, '&page=' + idx);
	obj.href=url;
}
</script>
<div id="pager" class="ui pagination" style="float: right;">
    <span class="icon item">
      总计 {#$totalCnt#} 条
    </span>
    {#for $idx = 1 to $pageCnt #}
        <a class="{#if $idx == $curPage#}active{#/if#} item" onclick="changePage(this, {#$idx#})" href="#" >
          {#$idx#}
        </a>
    {#/for#}
    <span class="icon item">
      共 {#$pageCnt#} 页
    </span>
</div>